# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>

# those scripts are based on debians ifenslave-2.6 scripts

pkgname=bonding
pkgver=2.6
pkgrel=4
pkgdesc="Scripts for network interface bonding"
url="https://wiki.alpinelinux.org/wiki/Bonding"
arch="noarch"
license="GPL-2.0-or-later"
source="bonding.pre-up bonding.up bonding.post-down"

package() {
	cd "$srcdir"
	for i in pre-up up post-down; do
		install -Dm755 bonding.$i "$pkgdir"/etc/network/if-$i.d/bonding
	done
}

sha512sums="88d0566242b172c60b66bd62ce1b5c9f01e5d3b79a2caa7eea8f2ec0255158f449392a54348dd5c375d14f4d8fa6182333c2154582c7eab7f3e8f4a7adce900a  bonding.pre-up
5c81b2891c281df2df4c98a560f776b857e4b6b20ac733858683d87fb7b1ac57423f57003cfdcfac24c8257de31062c4596270e9482b8d35d517e29f2bac0951  bonding.up
c6b6f06d1c0a7be1022feb18cdcc55780cad2200ac0121f276527442becb7d75a7850b809ae9c6d5b914a1a03f791bd65c088f1289ce0e28b5a02bd86e3868de  bonding.post-down"
